<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>小米商城</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        list-style: none;
        text-decoration: none;
      }

      body {
        background-color: rgb(245, 245, 245);
      }

      .nav {
        display: flex;
        justify-content: space-between;
        margin: 0 auto;
        width: 1226px;
        height: 58px;
        /* background-color: skyblue; */
      }

      .nav .top_left {
        width: 100px;
        height: 58px;
        text-align: left;
        line-height: 58px;
        font-size: 20px;
        font-weight: 300;
        color: rgb(51, 51, 51);
      }

      .nav .top_right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100px;
        height: 58px;
      }

      .earphone,
      .apparel {
        width: 32px;
        height: 32px;
        font-size: 16px;
        box-sizing: border-box;
        text-align: center;
        line-height: 32px;
      }

      .earphone:hover,
      .apparel:hover {
        color: rgb(255, 103, 0);
        cursor: pointer;
        border-bottom: 2px rgb(255, 103, 0) solid;
      }

      .main {
        margin: 0 auto;
        width: 1226px;
        height: 614px;
        /* background-color: pink; */
        display: flex;
        justify-content: space-between;
      }

      .left {
        width: 234px;
        height: 614px;
        background-color: white;
      }

      .right {
        width: 978px;
        height: 614px;
        /* background-color: pink; */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: space-between;
      }

      .right .item {
        width: 234px;
        height: 300px;
        background-color: white;
        text-align: center;
      }

      .item .picture {
        margin-top: 28px;
      }

      .item .describe {
        width: 220px;
        margin-top: 5px;
        margin-left: 7px;
      }

      .item .describe h3,
      .last-item .last-describe h3 {
        color: black;
        font-weight: 400;
        font-size: 14px;
      }

      .item .describe .title {
        font-size: 12px;
        color: rgb(177, 177, 177);
        /* 单行文本显示为省略号 */
        /* 不换行 */
        white-space: nowrap;
        /* 溢出的隐藏掉 */
        overflow: hidden;
        /* 文字溢出如何处理 */
        text-overflow: ellipsis;
      }

      .item .describe .price,
      .last-item .last-describe p {
        margin-top: 14px;
        font-size: 14px;
        color: rgb(255, 103, 0);
      }

      .item .describe .old-price {
        color: rgb(177, 177, 177);
        text-decoration: line-through;
      }

      .last-item {
        background-color: transparent;
      }

      .last-item .fritter_01,
      .last-item .fritter_02 {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-end;
        width: 234px;
        height: 143px;
        background-color: white;
        margin-bottom: 14px;
      }

      .last-item .fritter_02 {
        margin-bottom: 0px;
      }

      .last-describe,
      .last-picture {
        width: 100px;
        height: 100px;
      }

      .last-describe {
        margin-left: 28px;
      }

      .last-describe_02,
      .last-picture_02 {
        width: 100px;
        height: 100px;
      }

      .last-picture_02 {
        align-self: center;
      }

      .left:hover,
      .item:hover,
      .fritter_01:hover,
      .fritter_02:hover {
        transform: translateY(-2px);
        transition: all 0.4s ease 0s;
        box-shadow: 0px 2px 20px 5px rgba(0, 0, 0, 0.1);
      }
    </style>
  </head>

  <body>
    <div class="nav">
      <div class="top_left">智能穿戴</div>
      <div class="top_right">
        <div class="earphone">耳机</div>
        <div class="apparel">穿戴</div>
      </div>
    </div>
    <div class="main">
      <div class="left">
        <img
          src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c9550c95ee33a22dc8db677dada00f09.jpg?thumb=1&w=293&h=768&f=webp&q=90"
          alt=""
          width="234px"
          height="614px"
        />
      </div>
      <div class="right">
        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202208111200_c1016839eae2c1f5bb79d5afde498e81.png?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Xiaomi Buds 4 Pro</h3>
              <p class="title">
                48dB智能动态降噪｜骨声纹通话降噪 | 独立空间音频
              </p>
              <p class="price">
                <span>999元</span>
                <span class="old-price">1099元</span>
              </p>
            </div>
          </a>
        </div>
        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202204211422_ce41ed00fe7fb79df35101222880121d.png?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Xiaomi Buds 3 Pro</h3>
              <p class="title">40dB自适应降噪 ｜空间音频 ｜ HiFi高保真音质</p>
              <p class="price">
                <span>499元</span>
                <span class="old-price">699元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/0b271a074e087848357aa61ae665b214.jpg?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Xiaomi Buds 3</h3>
              <p class="title">
                40dB宽频主动降噪 | HiFi高保真音质 | HRTF专业调音
              </p>
              <p class="price">
                <span>299元</span>
                <span class="old-price">499元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202205241527_fb27e27e6587254da27de5ba9c889512.png?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Redmi Buds 4</h3>
              <p class="title">
                35dB 智能主动降噪 | AI 通话降噪 | 30小时超长续航
              </p>
              <p class="price">
                <span>199元</span>
                <span class="old-price">299元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/11570d5371f16d2d9b19f504e09d01f0.jpg?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Redmi Buds 3</h3>
              <p class="title">轻巧半入耳 | 通话降噪 | 20小时长续航</p>
              <p class="price">
                <span>159元</span>
                <span class="old-price">199元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202111052007_e8e92e67988ebaff6e075412a54c3c66.png?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>小米真无线蓝牙耳机Air2 SE</h3>
              <p class="title">
                大尺寸动圈单元 | 20小时持久续航 | 双麦克风通话降噪
              </p>
              <p class="price">
                <span>99元</span>
                <span class="old-price">169元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="item">
          <a href="">
            <div class="picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202210191430_3ad0e4809ce06a126dea9755adbb2a1b.png?thumb=1&w=167&h=167&f=webp&q=90"
                alt=""
                width="160px"
                height="160px"
              />
            </div>
            <div class="describe">
              <h3>Xiaomi骨传导耳机</h3>
              <p class="title">小米首款骨传导耳机</p>
              <p class="price">
                <span>699元</span>
              </p>
            </div>
          </a>
        </div>

        <div class="last-item">
          <div class="fritter_01">
            <div class="last-describe">
              <h3 style="text-align: left">Xiaomi降噪蓝牙耳机Necklace</h3>
              <p style="color: rgb(255, 103, 0); text-align: left">499元</p>
            </div>
            <div class="last-picture">
              <img
                src="https://cdn.cnbj1.fds.api.mi-img.com/nr-pub/202209261427_67cd5fddb341f0e0fb0a2295e643b0d8.png?thumb=1&w=83&h=83&f=webp&q=90"
                alt=""
                width="80px"
                height="80px"
              />
            </div>
          </div>
          <div class="fritter_02">
            <div class="last-describe_02">
              <div style="padding: 13px; box-sizing: border-box">
                <h3 style="text-align: left; font-size: 18px; font-weight: 400">
                  浏览更多
                </h3>
                <span
                  class="title"
                  style="text-align: left; font-size: 12px; color: grey"
                  >耳机</span
                >
              </div>
            </div>
            <div class="last-picture_02">
              <div style="padding: 10px; box-sizing: border-box">
                <img src="./图标.png" alt="" width="80px" height="80px" />
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
